package com.gopay.common.domain.bank.boc.bcdl.querybalance.req;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.gopay.common.domain.bank.boc.bcdl.Trans;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("trn-b2e0005-rq") 
public class TransReqQueryBalance extends Trans{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -3372063685865377522L;
	@XStreamImplicit(itemFieldName="b2e0005-rq")
	private List<Inner> inners;
	
	public TransReqQueryBalance() {
		// TODO Auto-generated constructor stub
	}
	
	public TransReqQueryBalance(List<ReqQueryBalAccount> list){
		this.inners = new ArrayList<Inner>();
		for(ReqQueryBalAccount account: list){
			Inner in = new Inner();
			in.setAccount(account);
			inners.add(in);
		}
	}
	
    private static class Inner implements Serializable{
    	/**
		 * 
		 */
		private static final long serialVersionUID = -2332066260658040662L;
		@XStreamAlias("account") 
		private ReqQueryBalAccount account;

		public ReqQueryBalAccount getAccount() {
			return account;
		}

		public void setAccount(ReqQueryBalAccount account) {
			this.account = account;
		}
	}
}
